// 根组件
import React from 'react'
import Test from './components/Test'

function Demo() {
  return <h2>demo组件</h2>
}
export default class App extends React.Component {
  
  state = {
    test: [1, 2, 3],
  }
  render() {
    return (
      <div>
        <hr />
        {/* 通过props传递数据给Test */}
        <Test
          xxx={this.state.test}
          yyy={1}
          zzz={'123'}
          ele={<h1>123</h1>}
          eleType={Demo}
          eleInstance={<Demo></Demo>}
        ></Test>
        <hr />
      </div>
    )
  }
}
